package com.bicon.botu.core.base.repository.redis;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

/**
 * 全局缓存服务
 * 使用时候直接如下注释：
 * @Autowired
 * @Qualifier("globalRedisHandler")
 * RedisHandlerNew redisHandler;
 *
 * @author: jingwj
 * @date: Created in 16:03 2018/1/2/012
 */
@Component("globalRedisHandler")
public class GlobalRedisHandler extends RedisHandlerNew {

    @Autowired(required = true)
    public GlobalRedisHandler(@Qualifier(value="globalRedisTemplate")RedisTemplate redisTemplate) {
        super(redisTemplate);
    }
}
